<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">订单列表</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('AdminComplaint/index')}">
        <select name="s_tid">
            <option value="">请选择</option>
            <option value="1">客户留言</option>
            <option value="3">客户投诉</option>
            <option value="2">客户建议</option>
        </select> &nbsp;&nbsp;
        订单号：
        <input type="text" name="keyword" style="width: 200px;" value="{$keyword}" placeholder="请输入搜索内容">
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form class="js-ajax-form" action="" method="post">

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">发起人</th>
                <th width="50">姓名</th>
                <th width="50">电话</th>
                <th width="50">内容</th>
                <th width="50">类型</th>
                <th width="50">提交时间</th>
            </tr>
            <foreach name="list" item="vo">
                <tr>
                    <td><b>{$vo.user_nicename}</b></td>
                    <td><b>{$vo.name}</b></td>
                    <td><b>{$vo.phone}</b></td>
                    <td><b>{$vo.content}</b></td>
                    <td><b>
                        <if condition="$vo['type'] == 1">
                            客户留言
                        <elseif condition="$vo['type'] == 2"/>客户建议
                        <elseif condition="$vo['type'] == 3"/>客户投诉
                        </if>
                    </b></td>
                    <td>{$vo.createtime}</td>

                </tr>
            </foreach>
            </thead>
        </table>

        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    function refersh_window() {
        var refersh_time = getCookie('refersh_time');
        if (refersh_time == 1) {
            window.location = "{:U('AdminPost/index',$formget)}";
        }
    }

</script>
</body>
</html>